package com.cn.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@ApiModel(value="com-cn-pojo-Collect")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "`collect`")
public class Collect {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)

    @ApiModelProperty(value="id")
    private Long id;

    /**
     * 微信openId
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value="微信用户id")
    private Long userId;

    /**
     * 商品id
     */
    @TableField(value = "dish_id")
    @ApiModelProperty(value="商品id")
    private Long dishId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value="创建时间")
    private Date createTime;

    /**
     * 创建时间
     */
    @TableField(exist = false)
    @ApiModelProperty(value="商品名称")
    private String name;

    @TableField(exist = false)
    @ApiModelProperty(value="商品图片")
    private String image;

    @TableField(exist = false)
    @ApiModelProperty(value="商品价格")
    private String price;

    @TableField(exist = false)
    @ApiModelProperty(value="微信号")
    private String nickName;



    public static final String COL_ID = "id";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_DISH_ID = "dish_id";

    public static final String COL_CREATE_TIME = "create_time";
}